package com.share.device.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.share.common.core.annotation.Excel;
import com.share.common.core.web.domain.BaseEntity;

/**
 * 充电宝对象 power_bank
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
public class PowerBank extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 充电宝编号 */
    @Excel(name = "充电宝编号")
    private String powerBankNo;

    /** 电量 */
    @Excel(name = "电量")
    private BigDecimal electricity;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 状态（0:未投放 1：可用 2：已租用 3：充电中 4：故障） */
    @Excel(name = "状态", readConverterExp = "0=:未投放,1=：可用,2=：已租用,3=：充电中,4=：故障")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPowerBankNo(String powerBankNo) 
    {
        this.powerBankNo = powerBankNo;
    }

    public String getPowerBankNo() 
    {
        return powerBankNo;
    }

    public void setElectricity(BigDecimal electricity) 
    {
        this.electricity = electricity;
    }

    public BigDecimal getElectricity() 
    {
        return electricity;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("powerBankNo", getPowerBankNo())
            .append("electricity", getElectricity())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
